export function dateFormat( time) {
  var now = new Date(time)
  var year = now.getFullYear();
  var month = now.getMonth() + 1;
  var date = now.getDate();
  var hour = now.getHours();
  var minute = now.getMinutes();
  var second = now.getSeconds();
  // return year + "-" + month + "-" + date + " " + hour + ":" + minute + ":" + second;
  // console.log(year + "-" + month + "-" + date + " " + hour + ":" + minute + ":" + second)
  // console.log(hour + ":" + minute + ":" + second)
  return  second;
} 
export function Format( time) {
  var now = new Date(time)
  var year = now.getFullYear();
  var month = now.getMonth() + 1;
  var date = now.getDate();
  var hour = now.getHours();
  var minute = now.getMinutes();
  var second = now.getSeconds();
  // return year + "-" + month + "-" + date + " " + hour + ":" + minute + ":" + second;
  //  console.log(year + "-" + month + "-" + date + " " + hour + ":" + minute + ":" + second) 
  return year + "" + month + "" + date + "" + (hour < 10 ? "0" + hour : hour) + "" + (minute < 10 ? "0" + minute : minute) + "" + (second < 10 ? "0" + second : second);
  
  
}
